package sjp.demo.jvm.chapter1;

public class ClassLoaderTest {
    public static void main(String[] args) {
        System.out.println(ClassLoaderTest.class.getClassLoader().getParent().getParent());//null
        System.out.println(ClassLoaderTest.class.getClassLoader().getParent()); //sun.misc.Launcher$ExtClassLoader@4554617c
        System.out.println(ClassLoaderTest.class.getClassLoader());//sun.misc.Launcher$AppClassLoader@18b4aac2

        System.out.println("======================");
        System.out.println(new Object().getClass().getClassLoader());//null  根classLoader已加载
    }
}
